<?php

class AnalyticsForm extends CFormModel
{
	public $placeholder;
	public $content;
	
	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			array('placeholder, content', 'required'),
			array('placeholder', 'length', 'max'=>255),
			
			array('placeholder, content', 'safe'),
		);
	}

	public function attributeLabels()
	{
		return array(
			'placeholder'=>tt('Placeholder'),
			'content'=>tt('Content'),
		);
	}
}